globalThis.baseDirname = __dirname

let app = require(`${globalThis.baseDirname}/app.js`)

let run = require(`${globalThis.baseDirname}/controller.js`)
run(app)

let config = require(`${globalThis.baseDirname}/config.js`)
const port = config.port
app.listen(port, () => {
    console.log(`监听端口: ${port}`)
})